package com.boyuan.config.entity;

public enum  ResponseCode {
    SUCCESS(200,"SUCCESS"),
    REQUESTBAD(400,"BAD REQUEST"),
    NOTFOUND(404,"NOT FOUND"),
    FORBIDDEN(403,"FORBIDDEN"),
    SERVERERROR(500,"SERVER ERROR"),
    UNAUTHORIZED(401,"UNAUTHORIZED"),
    CUSTOMERROR(700,"CUSTOM ERROR");

    private final int code;
    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
